#define _CRT_SECURE_NO_WARNINGS
#include"Queue.h"
int main()
{
	Qu* pq = (Qu*)malloc(sizeof(Qu)) ;
	QueueInit(pq);
	QueuePush(pq,1);
	QueuePush(pq,2);
	QueuePush(pq,3);
	QueuePush(pq,4);
	QueuePush(pq,5);
	QueuePush(pq,6);
	printf("%d ", QueueFront(pq));
	QueuePop(pq);
	printf("%d ", QueueFront(pq));
	QueuePop(pq);
	printf("%d ", QueueFront(pq));
	QueuePop(pq);
	printf("%d ", QueueFront(pq));
	QueuePop(pq);	
	printf("%d ", QueueFront(pq));
	QueuePop(pq);
	printf("%d ", QueueFront(pq));
	QueuePop(pq);

	QueuePush(pq, 2);	printf("%d ", QueueBack(pq));
	QueuePush(pq, 3);	printf("%d ", QueueBack(pq));
	printf("\n%d", QueueIsEmpty(pq));
	printf("\n%d\n", QueueSize(pq));

	QueuePush(pq, 4);	printf("%d ", QueueBack(pq));
	QueuePush(pq, 5);	printf("%d ", QueueBack(pq));
	QueuePush(pq, 6);	printf("%d ", QueueBack(pq));
	QueuePop(pq);
	QueuePop(pq);
	QueuePop(pq);
	QueuePop(pq);
	QueuePop(pq);
	printf("%d ", QueueIsEmpty(pq));
	QueueDestroy(pq);
	QueuePush(pq, 1);

	return 0;
}